package composite;

/**
 * @author wcj
 * @Date 2021/7/2 17:54
 * @Version 1.0
 */
public class Finance implements Company {

    private String name;

    public Finance(String name) {
        this.name = name;
    }

    @Override
    public void add(Company company) {

    }

    @Override
    public void remove(Company company) {

    }

    @Override
    public void display(int depth) {
        System.out.println("我是：" + this.name);
    }

    @Override
    public void showDuty() {
        System.out.println("我主要负责财务管理!");
    }
}
